CXX = g++
#CXXFLAGS = -g -Wall -pedantic -fopenmp
CXXFLAGS = -Wall -pedantic -fopenmp -O4

LIBS = -lm -lgsl -lgslcblas -lboost_program_options

OBJS := sampler.o frames.o distributions.o sampler_init.o sampler_data.o
#SRCS := samplib.c sampler.cc ldaframes-sampler.cc

all: ldaframes-sampler ldaframes-info

ldaframes-sampler: ldaframes-sampler.o $(OBJS)
	${CXX} ${CXXFLAGS} -o $@ ldaframes-sampler.o ${OBJS} ${LIBS}

ldaframes-info: ldaframes-info.o $(OBJS)
	${CXX} ${CXXFLAGS} -o $@ ldaframes-info.o ${OBJS} ${LIBS}

.cc.o:
	${CXX} ${CXXFLAGS} -c $< 

clean:
	rm ldaframes-sampler.o sampler.o frames.o distributions.o sampler_init.o sampler_data.o ldaframes-sampler ldaframes-info
